export { ShapeFlags } from './shapeFlags';

export const isObject = value => typeof value === 'object' && value !== null;

export const extend = Object.assign;

export const isArray = Array.isArray;

export const isFunciton = value => typeof value === 'function';

export const isNumber = value => typeof value === 'number';

export const isString = value => typeof value === 'string';

export const isIntegerKey = key => parseInt(key) + '' === key;

export const hasOwn = (target, key) => Object.prototype.hasOwnProperty.call(target, key);

export const hasChanged = (oldV, newV) => oldV !== newV;
